package com.wfms.service;

import com.config.AuthConfig;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by Administrator on 2017/12/24.
 */
@FeignClient(name = "eurekaAuth",url = "http://localhost:11111/eureka/",configuration = AuthConfig.class)
public interface EurekaServiceAuth {

    @GetMapping("/apps/{serviceName}")
    public String getEurekaServiceByName(@PathVariable("serviceName") String serviceName);


}
